import Layout from '@/layout'

/** @type {import("vue-router").RouteConfig} */
export default {
  path: "/sys_manage",
  component: Layout,
  redirect: "/sys_manage",
  meta: {
    title: "系统管理",
    icon: "tree",
    roles: true,
  },

  children: [
    {
      path: "/sys_manage",
      name: "SystemManage",
      component: () => import("@/views/system-manage/index.vue"),
    },

    {
      path: "user_manage",
      name: "UserManage",
      component: () => import("@/views/system-manage/UserManage/index.vue"),
      meta: {
        title: "用户管理",
        icon: "user",
        roles: true
      }
    },

    {
      path: "role_manage",
      name: "RoleManage",
      component: () => import("@/views/system-manage/RoleManage/index.vue"),
      meta: {
        title: "角色管理",
        icon: "el-icon-s-custom",
        roles: true
      }
    },

    {
      path: "opare_logger",
      name: "OpareLogger",
      component: () => import("@/views/system-manage/OpareLogger/index.vue"),
      meta: {
        title: "操作日志",
        icon: "documentation",
        roles: true
      }
    },

    {
      path: "user_group_manage",
      name: "UserGroupManage",
      component: () => import("@/views/system-manage/UserGroupManage/index.vue"),
      meta: {
        title: "用户组管理",
        icon: "peoples",
        roles: true
      }
    },

    {
      path: "org_manage",
      name: "OrgManage",
      component: () => import("@/views/system-manage/OrgManage/index.vue"),
      meta: {
        title: "组织管理",
        icon: "el-icon-office-building",
        roles: true,
      }
    }
  ]
};
